package com.shangyueshang.request;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author: JokeyZheng
 * @email: zhengjingfeng@ruqimobility.com
 * @created: 2022/2/22 16:37
 * @version: v1.0.0
 */
@Data
public class InventoryDTO {

    /**
     * SKU
     */
    @NotBlank
    private String sku;

    /**
     * 可售库存数量
     */
    @NotNull
    @Min(value = 0)
    private Integer onSaleQuantity;

    /**
     * 在途库存数量
     */
    @NotNull
    @Min(value = 0)
    private Integer fbaQuantity;

    /**
     * 国内库存数量
     */
    @NotNull
    @Min(value = 0)
    private Integer domesticQuantity;

    /**
     * 日均销量
     */
    @NotNull
    @Min(value = 0)
    private Integer daySoldQuantity;

    /**
     * 安全库存天数
     */
    @Min(value = 0)
    private Integer inventorySafetyDay;

    /**
     * 运输天数
     */
    @Min(value = 5)
    private Integer shippingDay;

    /**
     * 交货周期
     */
    @Min(value = 1)
    private Integer produceDay;
}
